package com.tanxi521.afkreward.util;

public class ColorUtil {

    public static String replace(String msg) {
        return msg.replace("%prefix", ConfigUtil.langYml.getString("prefix")).replace("&", "§");
    }

    public static boolean isNumeric(String str) {
        for (int i = str.length(); --i >= 0; ) {
            if (!Character.isDigit(str.charAt(i))) {
                return false;
            }
        }
        return true;
    }

}
